package com.guaoran.algorithm.entity;

/**
 * @Desc： 节点
 * @Auth gucheng
 * @Date 2020/12/16 上午11:40
 */
public class Node<T> {
    public T data;
    public Node<T> next;
    public Node random;

    public Node(T data) {
        this.data = data;
    }
    public Node(){}
    @Override
    public String toString() {
        if(next != null) {
            return data + "\t" + next;
        }
        return data+"";
    }
}
